﻿using System;

namespace _01_AbstractFactoryModel
{
    class Program
    {
        static void Main(string[] args)
        {
            User user = new User();
            SqlserverUser sqlserverUser = new SqlserverUser();
            sqlserverUser.Insert(user);
            sqlserverUser.GetUser(1);
            Console.Read();
        }
    }

    class User
    {
        public int ID { get; set; }
        public string Name { get; set; }
    }
    class SqlserverUser
    {
        public void Insert(User user)
        {
            Console.WriteLine("在SQL Server中给User表增加一条记录");
        }
        public User GetUser(int id)
        {
            Console.WriteLine("在SQL Server中根据ID得到User表一条记录");
            return null;
        }
    }
}
